package com.xunqi.mall.form;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @create: 2020-04-23 17:50
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserRegisterForm {

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    private String username;


    /**
     * 用户密码
     */
    @NotNull(message = "用户密码不能为空")
    private String password;

    /**
     * 用户密码
     */
    @NotNull(message = "邮箱不能为空")
    private String email;

}
